package com.crop.back.vo;

import com.crop.back.common.validator.group.sys.LoginGroup;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

@Data
public class EmailLoginVo {
    @NotEmpty(message = "{sys.user.email.notEmpty}", groups = {LoginGroup.class})
    @Email(message = "{sys.user.email.format.error}", groups = {LoginGroup.class})
    private String email;

    @NotEmpty(message = "{sys.user.code.notEmpty}", groups = {LoginGroup.class})
    private String code;
}
